package it.fuesi.synoutils.model.btsearch;

import it.fuesi.synoutils.model.base.BaseApiClientParameters;

/**
 * Created by pascotto on 23/10/14.
 */
public class BTSearchClientParameters extends BaseApiClientParameters {

    private String keyword;
    private String taskid;
    private boolean started = false;
    private boolean finished = false;
    private int counter = 0;

    public int getCounter() {
        return counter;
    }

    public void setCounter(int counter) {
        this.counter = counter;
    }

    public boolean isStarted() {
        return started;
    }

    public void setStarted(boolean started) {
        this.started = started;
    }

    public boolean isFinished() {
        return finished;
    }

    public void setFinished(boolean finished) {
        this.finished = finished;
    }

    public String getKeyword() {
        return keyword;
    }

    public void setKeyword(String keyword) {
        this.keyword = keyword;
    }

    public String getTaskid() {
        return taskid;
    }

    public void setTaskid(String taskid) {
        this.taskid = taskid;
    }

    public static BTSearchClientParameters build(boolean expireCache){
        final BTSearchClientParameters params = new BTSearchClientParameters();
        params.setRefreshCache(expireCache);
        return params;
    }
}
